package org.joyflow.core.listen;

import lombok.extern.slf4j.Slf4j;
import org.joyflow.core.instance.DbConTypeRegistry;
import org.joyflow.core.instance.DbTypeRegistry;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SystemLoadRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        try {
            DbTypeRegistry.init();
            DbConTypeRegistry.init();
        } catch (Exception e) {
            log.error("初始化异常", e);
        }
    }

}